import request from '@/utils/request'

// 查询场景参数数据列表
export function listScenarioData(query) {
  return request({
    url: '/business/scenarioData/list',
    method: 'get',
    params: query
  })
}

// 查询场景参数数据详细
export function getScenarioData(id) {
  return request({
    url: '/business/scenarioData/' + id,
    method: 'get'
  })
}

// 新增场景参数数据
export function addScenarioData(data) {
  return request({
    url: '/business/scenarioData',
    method: 'post',
    data: data
  })
}

// 修改场景参数数据
export function updateScenarioData(data) {
  return request({
    url: '/business/scenarioData',
    method: 'put',
    data: data
  })
}

// 删除场景参数数据
export function delScenarioData(id) {
  return request({
    url: '/business/scenarioData/' + id,
    method: 'delete'
  })
}
